<template>
  <el-row>
    <div class="section-input">
      <el-radio-group v-model="sel">
        <div v-if="question.style==='v'">
          <section v-for="option in question.options" :key="option.key">
            <el-radio :label="option.text" :checked="option.checked">{{option.text}}</el-radio>
          </section>
        </div>
        <div v-else>
          <section v-for="option in question.options" :key="option.key" style="float:left">
            <el-radio :label="option.text" :checked="option.checked">{{option.text}}</el-radio>
          </section>
        </div>
      </el-radio-group>
    </div>
  </el-row>
</template>

<script>
  export default {
    name: "view-i-radio",
    props: ['question'],
    data() {
      return {
        sel:null
      }
    },
    methods: {}
  }
</script>

<style scoped>

</style>
